package com.atguigu.yygh.hosp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @Author luoyin
 * @Date 15:25 2022/9/25
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor

@Document("user")
public class User {
    @Id
    private String uid;
    @Field("name")
    private String username;
    private Integer age;
}
